import java.util.Scanner;
public class koujue{
  public static void main (String arg[])
  {
    Scanner reader = new Scanner(System.in);
    int N = reader.nextInt();
    while(N>=1&&N<=9){
      for(int i=1;i<=N;i++){
        for(int j=1;j<=i;j++){
          int ji=i*j;
          System.out.printf("%d*%d=%-4d",j,i,ji);}
        System.out.println();}
        break;}
  }
}
